package cn.s1995.sloth.bizs.oo.dto;

import cn.s1995.sloth.bizs.entity.UserAddress;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * ShopCartOrderMergerDTO
 *
 * @author Lex
 * @description
 * @date 2023/12/26 19:29
 */
@Data
@Schema(description = "多个店铺订单合并在一起的合并")
public class ShopCartOrderMergerDTO implements Serializable {
    @Schema(description = "实际总值", required = true)
    private Double actualTotal;

    @Schema(description = "商品总值", required = true)
    private Double total;

    @Schema(description = "商品总数", required = true)
    private Integer totalCount;

    @Schema(description = "订单优惠金额(所有店铺优惠金额相加)", required = true)
    private Double orderReduce;

    @Schema(description = "地址Dto", required = true)
    private UserAddress userAddr;

    @Schema(description = "每个店铺的购物车信息", required = true)
    private List<ShopCartOrderDTO> shopCartOrders;

    @Schema(description = "整个订单可以使用的优惠券列表", required = true)
    private List<CouponOrderDTO> coupons;
}
